package com.heima.zuoye.day07.timu7;

public class Student {
    private int ID;
    private String name;
    private double sum;

    public Student() {
    }

    public Student(int ID, String name, double sum) {
        this.ID = ID;
        this.name = name;
        this.sum = sum;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSum() {
        return sum;
    }

    public void setSum(double sum) {
        this.sum = sum;
    }

    @Override
    public String toString() {
        return "Student{" +
                "ID=" + ID +
                ", name='" + name + '\'' +
                ", sum=" + sum +
                '}';
    }
}
